Skip to content

Conversation

@jonathan-buttner
Copy link
Contributor

This PR reverts a decision to prevent deletion of default inference endpoints. We've run into a few instances where deleting inference endpoints has been useful to resolve some bugs. I'm worried that in the future we might be in a situation where we might need to delete a default endpoint to work around a bug.

This PR allows default endpoints to be deleted if the user includes the query parameter force=true.

After a default endpoint is deleted it'll be persisted again when being retrieved if it is not already persisted.

@jonathan-buttner jonathan-buttner changed the title [ML] Allowing deletion of default endpoints and add warning header [ML] Allowing deletion of default endpoints while using force=true Mar 13, 2025
@jonathan-buttner jonathan-buttner marked this pull request as ready for review March 13, 2025 18:56
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@jonathan-buttner jonathan-buttner added the auto-backport Automatically create backport pull requests when merged label Mar 13, 2025
Copy link
Member

@dan-rubinstein dan-rubinstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jonathan-buttner jonathan-buttner merged commit cbfc100 into elastic:main Mar 14, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.0
8.18 Commit could not be cherrypicked due to conflicts
8.x

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 124781

jonathan-buttner added a commit to jonathan-buttner/elasticsearch that referenced this pull request Mar 14, 2025
…lastic#124781)

* Allowing deletion of default endpoints and add warning header

* Moving to force logic
jonathan-buttner added a commit to jonathan-buttner/elasticsearch that referenced this pull request Mar 14, 2025
…lastic#124781)

* Allowing deletion of default endpoints and add warning header

* Moving to force logic
@jonathan-buttner
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.18

Questions ?

Please refer to the Backport tool documentation

jonathan-buttner added a commit to jonathan-buttner/elasticsearch that referenced this pull request Mar 14, 2025
…lastic#124781)

* Allowing deletion of default endpoints and add warning header

* Moving to force logic

(cherry picked from commit cbfc100)

# Conflicts:
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointActionTests.java
elasticsearchmachine pushed a commit that referenced this pull request Mar 14, 2025
…124781) (#124877)

* Allowing deletion of default endpoints and add warning header

* Moving to force logic
elasticsearchmachine pushed a commit that referenced this pull request Mar 14, 2025
…124781) (#124878)

* Allowing deletion of default endpoints and add warning header

* Moving to force logic
jonathan-buttner added a commit that referenced this pull request Mar 14, 2025
…124781) (#124879)

* Allowing deletion of default endpoints and add warning header

* Moving to force logic

(cherry picked from commit cbfc100)

# Conflicts:
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointActionTests.java
@jonathan-buttner jonathan-buttner deleted the ml-allow-deleting-default-endpoints branch March 14, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.18.0 v8.18.1 v8.19.0 v9.0.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants